class Player(object):
    def __init__(self, name, age, city):  # 初始化函数
        self.name = name
        self.age = age
        self.city = city

    def __str__(self):
        return self.city+self.name


mia = Player(name="mia", age=20, city="lll")
print(mia)
print(mia.name, mia.age, mia.city)

